import { PropType } from 'vue';
declare type modeType = 'edit' | 'preview' | 'editable' | 'subfield';
declare type openType = 'edit' | 'preview';
export const markDownProps = {
	name: {
		type: String,
	},
	value: {
		type: String,
		default: '',
	},
	disabled: {
		type: Boolean,
		default: false,
	},
	//编辑模式
	mode: {
		type: String as PropType<modeType>,
		default: 'editable',
	},
	//是否显示工具栏
	showToolbar: {
		type: Boolean,
		default: true,
	},
	//是否默认打开目录
	showCatalog: {
		type: Boolean,
		default: false,
	},
	//是否开启快捷键
	shortCut: {
		type: Boolean,
		default: true,
	},
	//是否显示边框阴影
	boxShadow: {
		type: Boolean,
		default: false,
	},
	//代码是否高亮
	highLight: {
		type: Boolean,
		default: true,
	},
	//是否双栏显示
	subfield: {
		type: Boolean,
		default: true,
	},
	//默认打开页面（edit | preview）
	defaultOpen: {
		type: String as PropType<openType>,
		default: 'edit',
	},
	//编辑区字体大小
	fontSize: {
		type: Number,
		default: 14,
	},
	placeholder: {
		type: String,
	},
};
